<?php

class RatingRestrictsModel extends myAcicrud {

    public function __construct($table = null, $database = null) {
        parent::__construct('rating_restricts');
    }

    public function check_restrict($ip, $fk_file) {
        $query = $this->db->get_where('rating_restricts', array('ip_address' => $ip, 'fk_files' => $fk_file));
        if ($query->num_rows() == 1) {
            return true;
        }
        return false;
    }

}

?>
